// api/index.js
import axios from "axios";

const api = axios.create({
  baseURL: "/api",
  timeout: 5000,
});

export const getCategoryList = () => {
  return api.get("/category/list");
};

export const getMaterialList = (params) => {
  return api.get("/material/list", { params });
};
